namespace SharpPlanetsModel {

  public class Position {

    private int xCoord;
    int yCoord;

    public void setXAbs(int value) {
      xCoord = value;
    }

    public void setYAbs(int value) {
      yCoord = value;
    }

    public int getXAbs() {
      return xCoord;
    }

    public int getYAbs() {
      return yCoord;
    }

    public int getXRel(int width) {
      return (int)((float)(xCoord * width) / Configuration.positionMaxX);
    }

    public int getYRel(int heigth) {
      return (int)((float)(yCoord * heigth) / Configuration.positionMaxY);
    }

    public Position(int AbsX, int AbsY) {
      xCoord = AbsX;
      yCoord = AbsY;
    }

    public Position() {
      xCoord = 0;
      yCoord = 0;
    }
  }
}
